const business = r => require.ensure([], () => r(require('../page/corporation/business')), 'business');
const staff = r => require.ensure([], () => r(require('../page/corporation/staff')), 'staff');
const team = r => require.ensure([], () => r(require('../page/corporation/team')), 'team');
const room = r => require.ensure([], () => r(require('../page/corporation/room')), 'room');
const org = r => require.ensure([], () => r(require('../page/corporation/org')), 'org');
const role= r => require.ensure([], () => r(require('../page/corporation/role')), 'role');

const staffInfo = r => require.ensure([], () => r(require('../page/corporation/staffInfo')), 'staffInfo');
const teamInfo = r => require.ensure([], () => r(require('../page/corporation/teamInfo')), 'teamInfo');
const addTeamBed = r => require.ensure([], () => r(require('../page/corporation/addTeamBed')), 'addTeamBed');
const addTeamMember = r => require.ensure([], () => r(require('../page/corporation/addTeamMember')), 'addTeamMember');
const addRole = r => require.ensure([], () => r(require('../page/corporation/addRole')), 'addRole');
const roomType = r => require.ensure([], () => r(require('../page/corporation/roomType')), 'roomType');
const roomInfo = r => require.ensure([], () => r(require('../page/corporation/roomInfo')), 'roomInfo');
const roomStandard = r => require.ensure([], () => r(require('../page/corporation/roomStandard')), 'roomStandard');
const viewRoomStandard = r => require.ensure([], () => r(require('../page/corporation/viewRoomStandard')), 'viewRoomStandard');
const editRoomStandard = r => require.ensure([], () => r(require('../page/corporation/editRoomStandard')), 'editRoomStandard');
const departmentSetting = r => require.ensure([], () => r(require('../page/corporation/departmentSetting')), 'departmentSetting');

// todo
const reserveBedContainer = r => require.ensure([], () => r(require('../components/room/reserveBedContainer.vue')), 'reserveBedContainer');

export default [

  {path: 'corporation/business', component: business,meta: {title: "企业管理",no:"5",num:"5-1"},name:"business"},
  {path: 'corporation/staff', component: staff,meta: {title: "员工管理",no:"5",num:"5-2"},name:"staff"},
  {path: 'corporation/team', component: team,meta: {title: "团队管理",no:"5",num:"5-3"},name:"team"},
  {path: 'corporation/room', component: room,meta: {title: "房间管理",no:"5",num:"5-4"},name:"room"},
  {path: 'corporation/org', component: org,meta: {title: "机构管理",no:"5",num:"5-5"},name:"org"},
  {path: 'corporation/role', component: role,meta: {title: "角色管理",no:"5",num:"5-6"},name:"role"},
    {path: 'corporation/departmentSetting', component: departmentSetting,meta: {title: "部门配置",no:"5",num:"5-7"},name:"departmentSetting"},

  {path: 'corporation/staffInfo/:way/:empId', component: staffInfo,meta: {title: "员工信息",no:"5",num:"5-2"},name:"staffInfo"},
  {path: 'corporation/teamInfo/:way/:teamId/:teamNumber', component: teamInfo,meta: {title: "团队信息",no:"5",num:"5-3"},name:"teamInfo"},
  {path: 'corporation/addTeamBed/:way/:teamId', component: addTeamBed,meta: {title: "新增成员",no:"5",num:"5-3"},name:"addTeamBed"},
  {path: 'corporation/addTeamMember/:way/:teamId', component: addTeamMember,meta: {title: "新增床位",no:"5",num:"5-3"},name:"addTeamMember"},
  {path: 'corporation/addRole/:way/:id', component: addRole,meta: {title: "新增角色",no:"5",num:"5-6"},name:"addRole"},

  {path: 'corporation/roomType', component: roomType,meta: {title: "房间类型",no:"5",num:"5-4"},name:"roomType"},
  {path: 'corporation/roomInfo/:rmId', component: roomInfo,meta: {title: "房间信息",no:"5",num:"5-4"},name:"roomInfo"},
  {path: 'corporation/roomStandard', component: roomStandard,meta: {title: "房间标准列表",no:"5",num:"5-4"},name:"roomStandard"},
  {path: 'corporation/viewRoomStandard/:rmStdId', component: viewRoomStandard,meta: {title: "房间标准-详情",no:"5",num:"5-4"},name:"viewRoomStandard"},
  {path: 'corporation/addRoomStandard', component: editRoomStandard,meta: {title: "房间标准-新建标准",no:"5",num:"5-4"},name:"addRoomStandard"},
  {path: 'corporation/editRoomStandard/:rmStdId', component: editRoomStandard,meta: {title: "房间标准-编辑标准",no:"5",num:"5-4"},name:"editRoomStandard"},

// todo
  {path: 'corporation/reserveBed', component: reserveBedContainer,meta: {title: "房间标准-编辑标准",no:"7",num:"5-4"},name:"reserveBedContainer"},

]
